import {
	defineStore
} from 'pinia';

export const useWsStore = defineStore('ws', {
	state: () => {
		return {
			connectFlag: false,
			chatList:[]
		};
	},
	// 也可以这样定义
	// state: () => ({ count: 0 })
	actions: {
		increment() {
			// this.count++;
			console.log("走了action")
		},
	},
});